package com.mgee.netty.server;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cache.annotation.EnableCaching;
import com.mgee.netty.server.netty.NettyServerListener;

/**
 * 
 * @author mileswan
 *
 */
@EnableCaching
@SpringBootApplication(exclude = DataSourceAutoConfiguration.class)
public class MgeeNettyServerApplication implements CommandLineRunner{
	
	@Autowired
	private NettyServerListener nettyServerListener;
	 
	public static void main(String[] args) {
		SpringApplication.run(MgeeNettyServerApplication.class, args);
	}

	@Override
	public void run(String... args) throws Exception {
		
		nettyServerListener.start();
	}

}
